package com.tl.mqtt.mqtt;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MqttConfig {

    @Value("${mqtt.username}")
    public String username;
    @Value("${mqtt.password}")
    public String password;
    @Value("${mqtt.url}")
    public String url;
    @Value("${mqtt.topic}")
    public String topic;
    @Value("${mqtt.client.id}")
    public String clientId;
    @Value("${mqtt.completionTimeout}")
    public Long completionTimeout;

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getUrl() {
        return url;
    }

    public String getTopic() {
        return topic;
    }

    public String getClientId() {
        return clientId;
    }

    public Long getCompletionTimeout() {
        return completionTimeout;
    }
}
